package com.irs.irsforum.mapper;

import com.irs.irsforum.entity.Favorite;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.access.method.P;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yihuili
 * @since 2020-01-18
 */
@Mapper
public interface FavoriteMapper extends BaseMapper<Favorite> {
    Integer setFavorite(@Param("postId") Long postId, @Param("userId") Long userId);

    Integer isFavorite(@Param("postId") Long postId, @Param("userId") Long userId);

    Integer updateFavorite(@Param("favorite") Favorite favorite);
}
